def eur_rate(z):
    r=7.8
    return z/r
def usd_rate(z):
    r=7.1
    return z/r
def jpy_rate(z):
    r=20.68
    return r*z
z=int(input())
zhuan=input("请输入转换类型")
if zhuan=="eur":
    print(eur_rate(z))
elif zhuan=="jpr":
    print(jpy_rate(z))
elif zhuan=="usd":
    print(usd_rate(z))
else:
    print("The currency is not available sorry")